from django.db import models
from doctor.models import Doctor


class AppointmentSlot(models.Model):
    doctor = models.ForeignKey(Doctor, on_delete=models.CASCADE)  # 医生
    date = models.DateField()  # 预约的日期
    slot_number = models.IntegerField()  # 每天的号数，范围 1-8
    available = models.BooleanField(default=True)  # 该号是否可预约